package com.heima.thread;

public class ThreadGetNameText01 {
    public static void main(String[] args) {
        //线程是有默认名字的，格式Three-编号
        ThreadGetName01 t1 = new ThreadGetName01("hua");
        ThreadGetName01 t2 = new ThreadGetName01("tuo");
        //设置名称
        t1.setName("校长");
        t2.setName("班长");

        t1.start();
        t2.start();

    }
}
